class Person(object):

    def __init__(self, name, sex):
        self.__name = name
        self.__sex = sex

    def get_name(self):
        return self.__name

    def get_sex(self):
        return self.__sex

    def set_sex(self, sex):
        self.__sex = sex


p = Person('mary', 'female')
print(p.get_name())
print(p._Person__sex)